package coint.btc.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

import coint.btc.validator.MergeGroups;
import coint.btc.validator.SaveGroups;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/***
 * 角色表
 * 
 * @author wyx
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "juese", catalog = "btc")

public class Juese implements java.io.Serializable {

	/**
	* 
	*/
	private static final long serialVersionUID = -4693619631215125658L;
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	@NotNull(message = "id,不能为空",groups= {MergeGroups.class})
	private Integer id;
	
	@Column(name = "name", length = 20)
	@ApiModelProperty(value = "角色名")
	@NotBlank(message = "角色名,不能为空",groups= {SaveGroups.class,MergeGroups.class})
	private String juese_name;
	
	@Column(name = "remark", length = 50)
	private String remark;
	
	

}